Skip to content

refactor(pxe): prefetch updated class id hints per unique contract#23130

Open
nchamo wants to merge 1 commit intomerge-train/fairiesfrom
nchamo/updated-class-id-hints-opt
Open

refactor(pxe): prefetch updated class id hints per unique contract#23130
nchamo wants to merge 1 commit intomerge-train/fairiesfrom
nchamo/updated-class-id-hints-opt

Conversation

@nchamo
Copy link
Copy Markdown
Contributor

@nchamo nchamo commented May 9, 2026

Summary

  • Prefetch getUpdatedClassIdHints once per unique contract address in the execution tree, in parallel, instead of issuing one oracle call per PrivateCallExecutionResult.
  • Reuses the cached hints from a Map<address, UpdatedClassIdHints> when building each call's PrivateCallData.
  • Adds a test covering a tree with repeated and distinct contract addresses to assert the oracle is called once per unique contract.

@nchamo nchamo self-assigned this May 9, 2026
@nchamo nchamo changed the title perf(pxe): prefetch updated class id hints per unique contract refactor(pxe): prefetch updated class id hints per unique contract May 9, 2026
@nchamo nchamo requested a review from benesjan May 9, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant